const express = require('express');
const router = express.Router();
const likeController = require('../controllers/likeController');
const authMiddleware = require('../middleware/auth');

router.post('/:post_id', authMiddleware, likeController.likePost);

router.delete('/:post_id', authMiddleware, likeController.unlikePost);

module.exports = router;